package com.gxa.uhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * @author: qingyao
 * @date: 12:34 2021/6/5
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Role 角色的实体类")
public class Role implements Serializable {
    @ApiModelProperty(name = "id", notes = "主键", dataType = "Integer", required = false)
    private Integer id;
    @ApiModelProperty(name = "name", notes = "姓名", dataType = "String", required = true)
    private String name;
    @ApiModelProperty(name = "regTime(添加时间)", notes = "添加时间", dataType = "Timestamp", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss.0", timezone = "GMT+8")
    private Timestamp regTime;
    @ApiModelProperty(name = "desc", notes = "角色描述", dataType = "String", required = true)
    private String desc;

    private List<Menu> menuList;
}
